Ext.define('ExtJs.store.message.module.MessageGridStore',{
	extend:'Ext.data.Store',
	alias : 'widget.messageGridStore',
	pageSize:10,
	model:'ExtJs.model.message.module.MessageModel',
	storeId:0,
	autoLoad:false,
    proxy: {
        type: 'ajax',
        url : '../servlet/bill.list',
        actionMethods : {
			read : 'POST'
		},
        reader: {
            type: 'json',
            root: 'resultList',
            totalProperty:'totalCount'
        }
    },
    listeners : {
				beforeload : {
					fn : function(store, options) {
						//设置查询参数
						//通过自己的编号
						var index = store.storeId.split('_')[1];
						//获得grid对象
						//var grid = Ext.getCmp('govInfoModuleGrid_'+index);
						//获得属性
						var type_id = Ext.getCmp('type_id').getValue() ;
						var supply_id = Ext.getCmp('supply_id').getValue() ;
						var starttime = Ext.getCmp('from_date').getValue() ;
						var endtime = Ext.getCmp('to_date').getValue() ;
						//alert(index);
						//{params:{module_Id:tab.moduleId,module_Name:rec.get('text')}}
						//alert(store.storeId);
						//if(index==133)						
							Ext.apply(store.proxy.extraParams,{'type_id':type_id,'supply_id':supply_id,'starttime':starttime,'endtime':endtime});
//						else if(index==134)						
//							Ext.apply(store.proxy.extraParams,{});
//						else if(index==135)						
//							Ext.apply(store.proxy.extraParams,{});
						//store.load();
					}
				}
			}
});